package com.systop.mapper;

import com.systop.pojo.Admin;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author zhangnan
 * @Data 2020/7/027 下午 4:52
 * @Descriiption
 **/
@Mapper
public interface AdminMapper {
    //管理员登陆
    @Select("select * from admin where admin_name=#{admin_name} and admin_password=#{admin_password}")
    Admin login(String admin_name,String admin_password);
    //管理员注册
    @Insert("insert into admin(admin_name,admin_password) values (#{admin_name},#{admin_password})")
    Integer loginin(String admin_name,String admin_password);

}
